<section>
    <ul class="loginmenu">
      <li><?php echo anchor('user/profile','ALDIKLARIM'); ?></li>
      <li><?php echo anchor('user/change_password','SIFRE DEGISTIR'); ?></li>
      <li><?php echo anchor('user/update_profile','PROFIL GUNCELLE'); ?></li>
    </ul>
    
    <div id="banner_section">
    <div id="stylized" class="myform">
        <?php echo form_open('user/update_profile_process'); ?>
        <?php foreach($result as $data):?>
        <h1>Profil Güncelleme</h1>
        <p></p>       
        
        <label>Kullacını Adı
        <span class="small">Kullacını adı giriniz</span>
        </label>
        <input type="text" name="username" id="username" value="<?php echo $data->username;?>" disabled="disabled"  />
        <img src="<?php echo base_url();?>/public/images/icon_refresh.png" onclick="toogle(username, name, email, surname)"/>
        <label>Eposta Adresi
        <span class="small">Email giriniz</span>
        </label>
        <input type="text" name="email" id="email" value="<?php echo $data->email;?>" disabled="disabled" />
        
        <label>Ad
        <span class="small">Adınızı giriniz</span>
        </label>
        <input type="text" name="name" id="name" value="<?php echo $data->name;?>" disabled="disabled" />
        
        <label>Soyad
        <span class="small">Soyadınızı giriniz</span>
        </label>
        <input type="text" name="surname" id="surname" value="<?php echo $data->surname;?>" disabled="disabled" />
        
        <button type="submit">Degiştir</button>
        <div class="spacer"></div>
        <?php endforeach;?>
        <?php echo validation_errors();?>
        </form>
        </div>
    </div>
    
    <script>
        function toogle(username, name, email, surname){    username.disabled=false; name.disabled=false; email.disabled=false; surname.disabled=false;    }
    </script>
       
       
</section>